package com.hxzy.controller.user.req;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.Date;

/**
 * @Author wy
 * @Description TODO
 * @Date 2023/8/27 9:02
 * @Version 1.0
 */
@Getter
@Setter
@ToString
public class UserAddReq {

    @NotBlank(message = "账号不能为空")
    private String name;

    @NotBlank(message = "密码不能为空")
    private String password;

    @NotBlank(message = "确认密码不能为空")
    private String confirmPwd;

    @NotBlank(message = "性别不能为空")
    private String sex;

    @NotNull(message = "年龄不能为空")
    private Long age;

    @Pattern(regexp = "^(1[3,4,5,6,8,9]\\d{9})$",message = "手机号码格式不正确，只支持(13|14|15|17|18|19)开头的")
    @NotBlank(message = "手机号不能为空")
    private String mobile;

    @NotBlank(message = "头像不能为空")
    private String portrait;

    /**
     *  0正常  1删除
     */
    @NotBlank(message = "状态不能为空")
    private String status;
}
